
package com.joolun.cloud.mall.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;

/**
 * 用户收藏
 *
 * @author www.joolun.com
 * @date 2019-09-22 20:45:45
 */
@Data
@TableName("user_collect")
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "用户收藏")
public class UserCollect extends Model<UserCollect> {
  private static final long serialVersionUID = 1L;

    /**
   * PK
   */
	@ApiModelProperty(value = "PK")
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    /**
   * 所属租户
   */
	@ApiModelProperty(value = "所属租户")
    private String tenantId;
    /**
   * 逻辑删除标记（0：显示；1：隐藏）
   */
	@ApiModelProperty(value = "逻辑删除标记")
    private String delFlag;
    /**
   * 创建时间
   */
	@ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
    /**
   * 最后更新时间
   */
	@ApiModelProperty(value = "最后更新时间")
    private LocalDateTime updateTime;
    /**
   * 类型1、商品
   */
	@ApiModelProperty(value = "类型")
    private String type;
    /**
   * 用户编号
   */
	@ApiModelProperty(value = "用户编号")
    private String userId;
    /**
   * 关联ID：商品类型为商品ID
   */
	@ApiModelProperty(value = "关联ID")
    private String relationId;
	@TableField(exist = false)
    private GoodsSpu goodsSpu;

	@TableField(exist = false)
	private ShopInfo shopInfo;

	@TableField(exist = false)
	private UserInfo userInfo;
}
